ioemu: Fix e1000 mmio range size.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 27 Feb 2008 13:16:02 +0000 (13:16 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 27 Feb 2008 13:16:02 +0000 (13:16 +0000)
Per Intel 82540EM Software Developer's Manual pp. 211, the mmio size
is 0x20000, or address overlapping occurs and causes the second card
to fail, which happened to me earlier.

From: Tina Yang <tina.yang@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/ioemu/hw/e1000.c

index fde815bd0a5998df7dfda3458c7cf1f784158a6a..48621f582fdaeeeded995db45511120a00c5db04 100644 (file)
@@ -48,7 +48,7 @@ static int debugflags = DBGBIT(TXERR) | DBGBIT(GENERAL);
 #endif
 
 #define IOPORT_SIZE       0x40
-#define PNPMMIO_SIZE      0x60000
+#define PNPMMIO_SIZE      0x20000
 
 /*
  * HW models: